<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<link rel="stylesheet" type="text/css" href="../../../Themes/default/easyui.css">
		<link rel="stylesheet" type="text/css" href="../../../Themes/icon.css">
		<link rel="stylesheet" type="text/css" href="../../../CSS/demo.css">
		<link rel="stylesheet" type="text/css" href="../../../CSS/common.css">

	</head>

	<body style="padding: 0px;">
		<div class="easyui-layout" style="width:100%;height:600px;">
			<div data-options="region:'center'">
				<div>
					<table id="dg2" class="table_style">
					</table>
				</div>
			</div>
		</div>
	</body>
	<script type="text/javascript" src="../../../JS/jquery.min.js"></script>
	<script type="text/javascript" src="../../../JS/jquery.easyui.min.js"></script>
	<script type="text/javascript" src="../../../JS/common.js"></script>
	<script type="text/javascript" src="../../../JS/Remind/RemindShare.js"></script>
	<script>
		$(document).ready(function() {
			getRemindData();
			var data = gRemindData[CONTRACT_SHORT_DATA];
			GetTable();
			$('#dg2').datagrid('loadData', data);
		});

		function GetTable() {
			$('#dg2').datagrid({
				height: 350,
				singleSelect: 'true', //是否单选：是
				rownumbers: 'true',
				fitColumns: 'true', //自动调整列：是
				autoSave: 'true',
				columns: [
					[{
						field: 'ID',
						title: 'ID',
						width: '10%',
						align: 'center',
					}, {
						field: 'TENANT_NAME',
						title: '租户名',
						width: '10%',
						align: 'center',
					}, {
						field: 'ORDER_NO',
						title: '合同编号',
						width: '8%',
						align: 'center'
					}, {
						field: 'BUSINESS_AREA',
						title: '经营面积',
						width: '8%',
						align: 'center',
						formatter: function(value, row, index) {
							if(value) {
								return value + " m&sup2";
							}
						}
					}, {
						field: 'RENT_SUM',
						title: '租金',
						width: '7%',
						align: 'center',
						formatter: function(value, row, index) {
							if(value) {
								return "￥" + value;
							}
						}
					}, {
						field: 'MARGIN_SUM',
						title: '保证金',
						width: '7%',
						align: 'center',

						formatter: function(value, row, index) {
							if(value) {
								return "￥" + value;
							}
						}
					}, {
						field: 'OTHERS_SUM',
						title: '其他费用',
						width: '7%',
						align: 'center',

						formatter: function(value, row, index) {
							if(value) {
								return "￥" + value;
							}
						}
					}, {
						field: 'BEGIN_TIME',
						title: '合同开始时间',
						width: '7%',
						align: 'center'
					}, {
						field: 'END_TIME',
						title: '合同结束时间',
						width: '7%',
						align: 'center'
					}, {
						field: 'SUM',
						title: '小计',
						width: '7%',
						align: 'center',
						formatter: function(value, row, index) {
							if(value) {
								return "￥" + value;
							}
						}
					}, {
						field: 'STATE',
						title: '摊位状态',
						width: '6%',
						align: 'center'
					}, ]
				],

			});
			$('#dg2').datagrid('hideColumn', 'ID');
		}
	</script>

</html>